var express = require("express");
var router = express.Router();

var {
  login,
  register,
  getUserInfo,
  changeStudent
} = require("../controllers/studentsControllers");

// 注册
router.post("/register", register);
//登录
router.post("/login", login);
//token验证
router.post("/getUserInfo", getUserInfo);
// 修改资料
router.post("/changeStudent", changeStudent);

module.exports = router;
